﻿<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8" />
    <title>合伙人协议</title>
    <script src="../../Scripts/jquery.min.js"></script>
    <script>
        function getUrls(name) {
            var re = new RegExp("[&,?]" + name + "=([^\\&]*)", "i");
            var a = re.exec(document.location.search);
            if (a != null && a != undefined)
                return a[1];
            else
                return null;
        }
        function ctx() {
            var curWwwPath = window.document.location.href;
            var pathName = window.document.location.pathname;
            var pos = curWwwPath.indexOf(pathName);
            //var localhostPaht = curWwwPath.substring(0, pos);
            var projectName = pathName.substring(0, pathName.substr(1).indexOf('/') + 1);
            return projectName;
        }
        $(function () {
            var id = getUrls("id"),
                folder_id = getUrls("id");
            if (!id) {
                $('#body').append($("<h1 style='text-align:center;'>协议id值位空！</h1>"));
                return false;
            }
            $.ajax({
                type: 'post',
                url: ctx() + '/api/ApproveVR/GetFouderPact/' + id,
                dataType: 'json',
                data: { "id": id},
                async: false,
                success: function (data) {
                    $('#body').append($(data.value));
                }
            });
        });
    </script>
</head>
<body id="body">
    
</body>
</html>